@zonos/elements 1.3.188 → 1.3.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{CheckoutConfig-f1442a60.js → CheckoutConfig-4afc683b.js} +2 -0
- package/dist/cjs/TaxId-12acedde.js +94 -0
- package/dist/cjs/{cart-f9df3ac8.js → cart-27f6c7a4.js} +60 -0
- package/dist/cjs/index.cjs.js +35 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-5e73c8f5.js → paypal-84d83a76.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +61 -4
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +37 -31
- package/dist/cjs/zonos-checkout.cjs.entry.js +16 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +31 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +14 -28
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +65 -1
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +50 -2
- package/dist/collection/components/utils/taxIdValidationResult.js +23 -2
- package/dist/collection/scripts/_zonosBase.js +25 -1
- package/dist/collection/types/checkout/CheckoutConfig.js +1 -0
- package/dist/collection/types/checkout/TaxId.js +64 -0
- package/dist/esm/{CheckoutConfig-5479d192.js → CheckoutConfig-eb7d6954.js} +2 -1
- package/dist/esm/TaxId-50d72254.js +90 -0
- package/dist/esm/{cart-4725a63b.js → cart-f5c12be6.js} +60 -0
- package/dist/esm/index.js +34 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-a09943f4.js → paypal-594f49e9.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +61 -4
- package/dist/esm/zonos-cart-items_13.entry.js +37 -31
- package/dist/esm/zonos-checkout.entry.js +16 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/{CheckoutConfig-5479d192.js → CheckoutConfig-eb7d6954.js} +1 -1
- package/dist/esm-es5/TaxId-50d72254.js +1 -0
- package/dist/esm-es5/cart-f5c12be6.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-a09943f4.js → paypal-594f49e9.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/scripts/index.d.ts +34 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -5
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +13 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +9 -0
- package/dist/types/components/utils/taxIdValidationResult.d.ts +2 -1
- package/dist/types/components.d.ts +25 -0
- package/dist/types/scripts/_zonosBase.d.ts +9 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -0
- package/dist/types/types/checkout/TaxId.d.ts +123 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-01eda7f2.entry.js +1 -0
- package/dist/zonos-elements/p-03bbd1af.entry.js +1 -0
- package/dist/zonos-elements/p-04a0e38b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e90cb997.entry.js → p-0dae66d2.entry.js} +1 -1
- package/dist/zonos-elements/{p-aaff5dcc.entry.js → p-1146b6e0.entry.js} +1 -1
- package/dist/zonos-elements/{p-8721bd47.system.entry.js → p-23975acb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2b8345d8.system.js +1 -0
- package/dist/zonos-elements/{p-04303b56.system.entry.js → p-315d8e78.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-175e242e.entry.js → p-3707564c.entry.js} +1 -1
- package/dist/zonos-elements/p-3831dab5.system.js +1 -0
- package/dist/zonos-elements/{p-341f40c2.system.entry.js → p-3d130579.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3f1a2d31.js +1 -0
- package/dist/zonos-elements/{p-0104d3ba.entry.js → p-4d1269a7.entry.js} +1 -1
- package/dist/zonos-elements/p-54fdf40b.entry.js +1 -0
- package/dist/zonos-elements/{p-8ee34712.system.js → p-5e1b2654.system.js} +1 -1
- package/dist/zonos-elements/{p-de462b9b.js → p-657390e6.js} +2 -2
- package/dist/zonos-elements/p-682e09fc.system.entry.js +1 -0
- package/dist/zonos-elements/p-6b361d2b.js +1 -0
- package/dist/zonos-elements/{p-fd348fd4.system.entry.js → p-751bfce8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a7a9b1c.entry.js → p-77654589.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5d081d8.entry.js → p-7bed199d.entry.js} +1 -1
- package/dist/zonos-elements/{p-995761ea.system.entry.js → p-83a7ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-86d29d50.system.entry.js +1 -0
- package/dist/zonos-elements/p-97e330cd.entry.js +1 -0
- package/dist/zonos-elements/{p-98e4a965.system.entry.js → p-9aa94d71.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-818d6f17.entry.js → p-a09f64e1.entry.js} +1 -1
- package/dist/zonos-elements/p-c1458d16.system.js +1 -0
- package/dist/zonos-elements/p-d7b5b237.js +1 -0
- package/dist/zonos-elements/{p-6fd6af48.system.entry.js → p-db3f6d6e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9913c186.system.js → p-e2d45b2e.system.js} +1 -1
- package/dist/zonos-elements/p-ea6d87a1.system.js +1 -1
- package/dist/zonos-elements/{p-9f7b9d66.system.entry.js → p-eeaff898.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/TaxId-4632639d.js +0 -29
- package/dist/esm/TaxId-915ef042.js +0 -26
- package/dist/esm-es5/TaxId-915ef042.js +0 -1
- package/dist/esm-es5/cart-4725a63b.js +0 -1
- package/dist/zonos-elements/p-12a6b7bd.system.js +0 -1
- package/dist/zonos-elements/p-25c47bf9.system.entry.js +0 -1
- package/dist/zonos-elements/p-33bdbcfd.entry.js +0 -1
- package/dist/zonos-elements/p-36bb3cbb.entry.js +0 -1
- package/dist/zonos-elements/p-5bd927f2.js +0 -1
- package/dist/zonos-elements/p-64ea232c.system.entry.js +0 -1
- package/dist/zonos-elements/p-6b40da70.system.js +0 -1
- package/dist/zonos-elements/p-70d4d436.entry.js +0 -1
- package/dist/zonos-elements/p-92d83e23.system.entry.js +0 -1
- package/dist/zonos-elements/p-f6038af5.entry.js +0 -1
- package/dist/zonos-elements/p-f927fd7a.system.js +0 -1
- package/dist/zonos-elements/p-fa6de0f3.js +0 -1
- package/dist/zonos-elements/p-fe253cc1.js +0 -1
|
@@ -28,8 +28,10 @@ const _getIsValidCartId = (cartId) => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const checkoutHiddenBtnSelector = 'zonos--checkout-hidden-button';
|
|
31
|
+
const checkoutHiddenInternationalBtnSelector = 'zonos--checkout-hidden-international-button';
|
|
31
32
|
const domesticRedirectedBtnSelector = 'zonos--domestic-redirected-checkout-button';
|
|
32
33
|
|
|
33
34
|
exports._getIsValidCartId = _getIsValidCartId;
|
|
34
35
|
exports.checkoutHiddenBtnSelector = checkoutHiddenBtnSelector;
|
|
36
|
+
exports.checkoutHiddenInternationalBtnSelector = checkoutHiddenInternationalBtnSelector;
|
|
35
37
|
exports.domesticRedirectedBtnSelector = domesticRedirectedBtnSelector;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const euCountryCodes = [
|
|
4
|
+
'AT',
|
|
5
|
+
'BE',
|
|
6
|
+
'BG',
|
|
7
|
+
'CY',
|
|
8
|
+
'CZ',
|
|
9
|
+
'DE',
|
|
10
|
+
'DK',
|
|
11
|
+
'EE',
|
|
12
|
+
'ES',
|
|
13
|
+
'FI',
|
|
14
|
+
'FR',
|
|
15
|
+
'GR',
|
|
16
|
+
'HR',
|
|
17
|
+
'HU',
|
|
18
|
+
'IE',
|
|
19
|
+
'IT',
|
|
20
|
+
'LT',
|
|
21
|
+
'LU',
|
|
22
|
+
'LV',
|
|
23
|
+
'MT',
|
|
24
|
+
'NL',
|
|
25
|
+
'PL',
|
|
26
|
+
'PT',
|
|
27
|
+
'RO',
|
|
28
|
+
'SE',
|
|
29
|
+
'SI',
|
|
30
|
+
'SK',
|
|
31
|
+
'CH',
|
|
32
|
+
'NO',
|
|
33
|
+
'GB',
|
|
34
|
+
];
|
|
35
|
+
const countryRequireTaxId = [
|
|
36
|
+
'AR',
|
|
37
|
+
'BR',
|
|
38
|
+
'KR',
|
|
39
|
+
'MX',
|
|
40
|
+
// EU countries
|
|
41
|
+
...euCountryCodes,
|
|
42
|
+
];
|
|
43
|
+
const shipToTaxIdLabels = {
|
|
44
|
+
AR: {
|
|
45
|
+
friendlyName: 'Unique Labor Identification Code',
|
|
46
|
+
placeholder: '00-00000000-0',
|
|
47
|
+
},
|
|
48
|
+
AT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
49
|
+
BE: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
50
|
+
BG: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
51
|
+
BR: {
|
|
52
|
+
friendlyName: 'CPF/CNPJ number',
|
|
53
|
+
placeholder: '000.000.000-00',
|
|
54
|
+
},
|
|
55
|
+
CH: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
56
|
+
CY: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
57
|
+
CZ: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
58
|
+
DE: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
59
|
+
DK: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
60
|
+
EE: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
61
|
+
ES: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
62
|
+
FI: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
63
|
+
FR: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
64
|
+
GB: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
65
|
+
GR: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
66
|
+
HR: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
67
|
+
HU: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
68
|
+
IE: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
69
|
+
IT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
70
|
+
KR: {
|
|
71
|
+
friendlyName: 'Personal Customers Clearance Code',
|
|
72
|
+
placeholder: '000-00-00000',
|
|
73
|
+
},
|
|
74
|
+
LT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
75
|
+
LU: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
76
|
+
LV: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
77
|
+
MT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
78
|
+
MX: {
|
|
79
|
+
friendlyName: 'RFC number',
|
|
80
|
+
placeholder: 'XAXX010101000',
|
|
81
|
+
},
|
|
82
|
+
NL: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
83
|
+
NO: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
84
|
+
PL: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
85
|
+
PT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
86
|
+
RO: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
87
|
+
SE: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
88
|
+
SI: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
89
|
+
SK: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.countryRequireTaxId = countryRequireTaxId;
|
|
93
|
+
exports.euCountryCodes = euCountryCodes;
|
|
94
|
+
exports.shipToTaxIdLabels = shipToTaxIdLabels;
|
|
@@ -174,6 +174,9 @@ const stringsArabic = {
|
|
|
174
174
|
'Duties, taxes, and fees': {
|
|
175
175
|
value: 'الرسوم والضرائب والرسوم',
|
|
176
176
|
},
|
|
177
|
+
'EORI number': {
|
|
178
|
+
value: 'رقم EORI',
|
|
179
|
+
},
|
|
177
180
|
Email: {
|
|
178
181
|
value: 'البريد الإلكتروني',
|
|
179
182
|
},
|
|
@@ -820,6 +823,9 @@ const stringsBase = {
|
|
|
820
823
|
'Duties, taxes, and fees': {
|
|
821
824
|
value: 'Duties, taxes, and fees',
|
|
822
825
|
},
|
|
826
|
+
'EORI number': {
|
|
827
|
+
value: 'EORI number',
|
|
828
|
+
},
|
|
823
829
|
Email: {
|
|
824
830
|
value: 'Email',
|
|
825
831
|
},
|
|
@@ -1466,6 +1472,9 @@ const stringsChinese = {
|
|
|
1466
1472
|
'Duties, taxes, and fees': {
|
|
1467
1473
|
value: '关税、税款和费用',
|
|
1468
1474
|
},
|
|
1475
|
+
'EORI number': {
|
|
1476
|
+
value: 'EORI编号',
|
|
1477
|
+
},
|
|
1469
1478
|
Email: {
|
|
1470
1479
|
value: '电子邮件',
|
|
1471
1480
|
},
|
|
@@ -2111,6 +2120,9 @@ const stringsDanish = {
|
|
|
2111
2120
|
'Duties, taxes, and fees': {
|
|
2112
2121
|
value: 'Told, skatter og gebyrer',
|
|
2113
2122
|
},
|
|
2123
|
+
'EORI number': {
|
|
2124
|
+
value: 'EORI-nummer',
|
|
2125
|
+
},
|
|
2114
2126
|
Email: {
|
|
2115
2127
|
value: 'E-mail',
|
|
2116
2128
|
},
|
|
@@ -2756,6 +2768,9 @@ const stringsDutch = {
|
|
|
2756
2768
|
'Duties, taxes, and fees': {
|
|
2757
2769
|
value: 'Heffingen, belastingen en kosten',
|
|
2758
2770
|
},
|
|
2771
|
+
'EORI number': {
|
|
2772
|
+
value: 'EORI-nummer',
|
|
2773
|
+
},
|
|
2759
2774
|
Email: {
|
|
2760
2775
|
value: 'E-mail',
|
|
2761
2776
|
},
|
|
@@ -3401,6 +3416,9 @@ const stringsFrench = {
|
|
|
3401
3416
|
'Duties, taxes, and fees': {
|
|
3402
3417
|
value: 'Droits, taxes et frais',
|
|
3403
3418
|
},
|
|
3419
|
+
'EORI number': {
|
|
3420
|
+
value: 'Numéro EORI',
|
|
3421
|
+
},
|
|
3404
3422
|
Email: {
|
|
3405
3423
|
value: 'Courriel',
|
|
3406
3424
|
},
|
|
@@ -4046,6 +4064,9 @@ const stringsGerman = {
|
|
|
4046
4064
|
'Duties, taxes, and fees': {
|
|
4047
4065
|
value: 'Zölle, Steuern und Gebühren',
|
|
4048
4066
|
},
|
|
4067
|
+
'EORI number': {
|
|
4068
|
+
value: 'EORI-Nummer',
|
|
4069
|
+
},
|
|
4049
4070
|
Email: {
|
|
4050
4071
|
value: 'E-Mail',
|
|
4051
4072
|
},
|
|
@@ -4691,6 +4712,9 @@ const stringsHebrew = {
|
|
|
4691
4712
|
'Duties, taxes, and fees': {
|
|
4692
4713
|
value: 'מכס, מסים ועמלות',
|
|
4693
4714
|
},
|
|
4715
|
+
'EORI number': {
|
|
4716
|
+
value: 'מספר EORI',
|
|
4717
|
+
},
|
|
4694
4718
|
Email: {
|
|
4695
4719
|
value: 'דוא"ל',
|
|
4696
4720
|
},
|
|
@@ -5336,6 +5360,9 @@ const stringsIndonesian = {
|
|
|
5336
5360
|
'Duties, taxes, and fees': {
|
|
5337
5361
|
value: 'Bea masuk, pajak, dan biaya',
|
|
5338
5362
|
},
|
|
5363
|
+
'EORI number': {
|
|
5364
|
+
value: 'Nomor EORI',
|
|
5365
|
+
},
|
|
5339
5366
|
Email: {
|
|
5340
5367
|
value: 'Email',
|
|
5341
5368
|
},
|
|
@@ -5981,6 +6008,9 @@ const stringsItalian = {
|
|
|
5981
6008
|
'Duties, taxes, and fees': {
|
|
5982
6009
|
value: 'Dazi, tasse e spese',
|
|
5983
6010
|
},
|
|
6011
|
+
'EORI number': {
|
|
6012
|
+
value: 'Numero EORI',
|
|
6013
|
+
},
|
|
5984
6014
|
Email: {
|
|
5985
6015
|
value: 'Email',
|
|
5986
6016
|
},
|
|
@@ -6626,6 +6656,9 @@ const stringsJapanese = {
|
|
|
6626
6656
|
'Duties, taxes, and fees': {
|
|
6627
6657
|
value: '関税、税金、手数料',
|
|
6628
6658
|
},
|
|
6659
|
+
'EORI number': {
|
|
6660
|
+
value: 'EORI番号',
|
|
6661
|
+
},
|
|
6629
6662
|
Email: {
|
|
6630
6663
|
value: 'メール',
|
|
6631
6664
|
},
|
|
@@ -7271,6 +7304,9 @@ const stringsKorean = {
|
|
|
7271
7304
|
'Duties, taxes, and fees': {
|
|
7272
7305
|
value: '관세, 세금 및 수수료',
|
|
7273
7306
|
},
|
|
7307
|
+
'EORI number': {
|
|
7308
|
+
value: 'EORI 번호',
|
|
7309
|
+
},
|
|
7274
7310
|
Email: {
|
|
7275
7311
|
value: '이메일',
|
|
7276
7312
|
},
|
|
@@ -7916,6 +7952,9 @@ const stringsNorwegian = {
|
|
|
7916
7952
|
'Duties, taxes, and fees': {
|
|
7917
7953
|
value: 'Avgifter, skatter og gebyrer',
|
|
7918
7954
|
},
|
|
7955
|
+
'EORI number': {
|
|
7956
|
+
value: 'EORI-nummer',
|
|
7957
|
+
},
|
|
7919
7958
|
Email: {
|
|
7920
7959
|
value: 'E-post',
|
|
7921
7960
|
},
|
|
@@ -8561,6 +8600,9 @@ const stringsPolish = {
|
|
|
8561
8600
|
'Duties, taxes, and fees': {
|
|
8562
8601
|
value: 'Cła, podatki i opłaty',
|
|
8563
8602
|
},
|
|
8603
|
+
'EORI number': {
|
|
8604
|
+
value: 'Numer EORI',
|
|
8605
|
+
},
|
|
8564
8606
|
Email: {
|
|
8565
8607
|
value: 'Email',
|
|
8566
8608
|
},
|
|
@@ -9206,6 +9248,9 @@ const stringsPortuguese = {
|
|
|
9206
9248
|
'Duties, taxes, and fees': {
|
|
9207
9249
|
value: 'Impostos, taxas e emolumentos',
|
|
9208
9250
|
},
|
|
9251
|
+
'EORI number': {
|
|
9252
|
+
value: 'Número EORI',
|
|
9253
|
+
},
|
|
9209
9254
|
Email: {
|
|
9210
9255
|
value: 'Email',
|
|
9211
9256
|
},
|
|
@@ -9851,6 +9896,9 @@ const stringsRussian = {
|
|
|
9851
9896
|
'Duties, taxes, and fees': {
|
|
9852
9897
|
value: 'Пошлины, налоги и сборы',
|
|
9853
9898
|
},
|
|
9899
|
+
'EORI number': {
|
|
9900
|
+
value: 'Номер EORI',
|
|
9901
|
+
},
|
|
9854
9902
|
Email: {
|
|
9855
9903
|
value: 'Электронная почта',
|
|
9856
9904
|
},
|
|
@@ -10496,6 +10544,9 @@ const stringsSpanish = {
|
|
|
10496
10544
|
'Duties, taxes, and fees': {
|
|
10497
10545
|
value: 'Aranceles, impuestos y cuotas',
|
|
10498
10546
|
},
|
|
10547
|
+
'EORI number': {
|
|
10548
|
+
value: 'Número EORI',
|
|
10549
|
+
},
|
|
10499
10550
|
Email: {
|
|
10500
10551
|
value: 'Correo electrónico',
|
|
10501
10552
|
},
|
|
@@ -11141,6 +11192,9 @@ const stringsSwedish = {
|
|
|
11141
11192
|
'Duties, taxes, and fees': {
|
|
11142
11193
|
value: 'Tull, skatter och avgifter',
|
|
11143
11194
|
},
|
|
11195
|
+
'EORI number': {
|
|
11196
|
+
value: 'EORI-nummer',
|
|
11197
|
+
},
|
|
11144
11198
|
Email: {
|
|
11145
11199
|
value: 'E-post',
|
|
11146
11200
|
},
|
|
@@ -11786,6 +11840,9 @@ const stringsTurkish = {
|
|
|
11786
11840
|
'Duties, taxes, and fees': {
|
|
11787
11841
|
value: 'Gümrük vergisi, vergiler ve ücretler',
|
|
11788
11842
|
},
|
|
11843
|
+
'EORI number': {
|
|
11844
|
+
value: 'EORI numarası',
|
|
11845
|
+
},
|
|
11789
11846
|
Email: {
|
|
11790
11847
|
value: 'E-posta',
|
|
11791
11848
|
},
|
|
@@ -12431,6 +12488,9 @@ const stringsVietnamese = {
|
|
|
12431
12488
|
'Duties, taxes, and fees': {
|
|
12432
12489
|
value: 'Thuế, phí và lệ phí',
|
|
12433
12490
|
},
|
|
12491
|
+
'EORI number': {
|
|
12492
|
+
value: 'Số EORI',
|
|
12493
|
+
},
|
|
12434
12494
|
Email: {
|
|
12435
12495
|
value: 'Email',
|
|
12436
12496
|
},
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
5
6
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
6
7
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
7
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
8
|
-
const TaxId = require('./TaxId-
|
|
8
|
+
const CheckoutConfig = require('./CheckoutConfig-4afc683b.js');
|
|
9
|
+
const TaxId = require('./TaxId-12acedde.js');
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -130,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
133
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.190.js.zonos.com";
|
|
134
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
135
136
|
if (!qaUrl &&
|
|
136
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -371,10 +372,10 @@ const zonosLoadUrl = (() => {
|
|
|
371
372
|
}
|
|
372
373
|
return null;
|
|
373
374
|
})();
|
|
374
|
-
const ZONOS_URL = "https://v1.3.
|
|
375
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
376
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
377
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
375
|
+
const ZONOS_URL = "https://v1.3.190.js.zonos.com";
|
|
376
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.190";
|
|
377
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.190";
|
|
378
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.190";
|
|
378
379
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
379
380
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
380
381
|
class Zonos {
|
|
@@ -392,7 +393,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
392
393
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
393
394
|
: null;
|
|
394
395
|
Zonos.isBigCommerce = false;
|
|
395
|
-
Zonos.releaseDate = "
|
|
396
|
+
Zonos.releaseDate = "1745855496554";
|
|
396
397
|
Zonos.isLegacyCheckout = false;
|
|
397
398
|
Zonos.domain = typeof window !== 'undefined'
|
|
398
399
|
? // domain that embeds the iframe
|
|
@@ -410,7 +411,7 @@ Zonos.isNpm = true;
|
|
|
410
411
|
Zonos.zonosQaUrl = null;
|
|
411
412
|
Zonos.zonosQaUrlApi = null;
|
|
412
413
|
Zonos.trackEventLogs = [];
|
|
413
|
-
Zonos.version = `v${"1.3.
|
|
414
|
+
Zonos.version = `v${"1.3.190"}`;
|
|
414
415
|
Zonos.modeAlerted = false;
|
|
415
416
|
Zonos.cartData = null;
|
|
416
417
|
Zonos.paypal = null;
|
|
@@ -501,6 +502,8 @@ Zonos.init = async (params) => {
|
|
|
501
502
|
_a.injectZonosCss();
|
|
502
503
|
// inject fonts for zonos elements
|
|
503
504
|
_a.injectFonts();
|
|
505
|
+
// inject checkout international button
|
|
506
|
+
_a.injectCheckoutInternationalButton();
|
|
504
507
|
// init zonos controller
|
|
505
508
|
_a.injectController({
|
|
506
509
|
config: {
|
|
@@ -514,6 +517,18 @@ Zonos.init = async (params) => {
|
|
|
514
517
|
});
|
|
515
518
|
_a.doneInit = true;
|
|
516
519
|
};
|
|
520
|
+
/**
|
|
521
|
+
* Inject the hidden international checkout button to trigger checkout regardless of shipping zones
|
|
522
|
+
*/
|
|
523
|
+
Zonos.injectCheckoutInternationalButton = () => {
|
|
524
|
+
if (!document.querySelector(`#${CheckoutConfig.checkoutHiddenInternationalBtnSelector}`)) {
|
|
525
|
+
// inject the hidden international checkout button
|
|
526
|
+
const checkoutInternationalBtn = document.createElement('button');
|
|
527
|
+
checkoutInternationalBtn.id = CheckoutConfig.checkoutHiddenInternationalBtnSelector;
|
|
528
|
+
checkoutInternationalBtn.style.display = 'none';
|
|
529
|
+
document.body.appendChild(checkoutInternationalBtn);
|
|
530
|
+
}
|
|
531
|
+
};
|
|
517
532
|
Zonos.injectCustomScriptForHostedCheckout = () => {
|
|
518
533
|
const cartData = _a.cartData;
|
|
519
534
|
const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
|
|
@@ -547,6 +562,15 @@ Zonos.displayCurrency = () => {
|
|
|
547
562
|
void zonosHello.displayCurrency();
|
|
548
563
|
}
|
|
549
564
|
};
|
|
565
|
+
Zonos.triggerCheckoutInternational = async () => {
|
|
566
|
+
// wait for the button to be visible and attached to the event
|
|
567
|
+
const checkoutInternationalBtn = document.querySelector(`#${CheckoutConfig.checkoutHiddenInternationalBtnSelector}`);
|
|
568
|
+
setTimeout(() => {
|
|
569
|
+
if (checkoutInternationalBtn) {
|
|
570
|
+
checkoutInternationalBtn.dispatchEvent(createCustomEvent.createCustomEvent('click'));
|
|
571
|
+
}
|
|
572
|
+
}, 10);
|
|
573
|
+
};
|
|
550
574
|
// Called openHelloDialog because the main use case is to simply open the dialog
|
|
551
575
|
Zonos.openHelloDialog = (value) => {
|
|
552
576
|
const zonosHello = document.querySelector('zonos-hello');
|
|
@@ -900,7 +924,9 @@ Zonos.injectSupportGoogleFont = (fontUrl) => {
|
|
|
900
924
|
};
|
|
901
925
|
|
|
902
926
|
exports.checkoutHiddenBtnSelector = CheckoutConfig.checkoutHiddenBtnSelector;
|
|
927
|
+
exports.checkoutHiddenInternationalBtnSelector = CheckoutConfig.checkoutHiddenInternationalBtnSelector;
|
|
903
928
|
exports.domesticRedirectedBtnSelector = CheckoutConfig.domesticRedirectedBtnSelector;
|
|
904
929
|
exports.countryRequireTaxId = TaxId.countryRequireTaxId;
|
|
930
|
+
exports.euCountryCodes = TaxId.euCountryCodes;
|
|
905
931
|
exports.shipToTaxIdLabels = TaxId.shipToTaxIdLabels;
|
|
906
932
|
exports.Zonos = Zonos;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"hiddenMode\":[4,\"hidden-mode\"],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller.cjs\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-hello-dialog.cjs\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-stripe-input.cjs\",[[2,\"zonos-stripe-input\",{\"name\":[1],\"autoComplete\":[1,\"auto-complete\"],\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"required\":[4],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-input.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-country-select_4.cjs\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_11.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-custom-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"isAddressLine1Entered\":[32],\"addressSuggestions\":[32],\"countryField\":[32],\"startGooglePlaceSuggestions\":[32],\"shipToCountries\":[32],\"shippingZones\":[32],\"city\":[32],\"country\":[32],\"firstName\":[32],\"lastName\":[32],\"line1\":[32],\"line2\":[32],\"phone\":[32],\"postalCode\":[32],\"state\":[32],\"cityError\":[32],\"stateError\":[32],\"postalCodeError\":[32],\"phoneError\":[32],\"firstNameError\":[32],\"lastNameError\":[32],\"isFirstInitialization\":[32],\"addressService\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"defaultAddress\":[\"defaultAddressChanged\"],\"line1\":[\"line1Changed\"],\"city\":[\"formFieldsChanged\"],\"country\":[\"formFieldsChanged\"],\"firstName\":[\"formFieldsChanged\"],\"lastName\":[\"formFieldsChanged\"],\"line2\":[\"formFieldsChanged\"],\"phone\":[\"formFieldsChanged\"],\"postalCode\":[\"formFieldsChanged\"],\"state\":[\"formFieldsChanged\"],\"addressService\":[\"shouldEnabledCustomAddressChanged\"],\"shippingZones\":[\"shippingZonesChanged\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-address-suggestions\",{\"type\":[1],\"suggestions\":[16],\"selectedSuggestionId\":[32],\"localSuggestions\":[32],\"lastHoveredSuggestionId\":[32]},null,{\"suggestions\":[\"suggestionsChanged\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[2,\"zonos-stripe-phone-input\",{\"autoComplete\":[1,\"auto-complete\"],\"countryOptions\":[16],\"disabled\":[4],\"error\":[1],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"inputValue\":[1,\"input-value\"],\"countryCode\":[1,\"country-code\"],\"minWidth\":[1,\"min-width\"],\"selectedCountry\":[32],\"phoneNumber\":[32],\"isFocused\":[32],\"isSelectOpen\":[32]},null,{\"countryOptions\":[\"onCountryOptionsChange\"],\"selectedCountry\":[\"onSelectedCountryChange\"],\"inputValue\":[\"onPhoneNumberChange\"]}],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}],[1,\"zonos-stripe-select\",{\"name\":[1],\"selectedValue\":[1,\"selected-value\"],\"selectLabel\":[1,\"select-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"selectPlaceholder\":[1,\"select-placeholder\"],\"options\":[16],\"autoComplete\":[1,\"auto-complete\"],\"value\":[1025],\"required\":[4],\"isClearable\":[4,\"is-clearable\"],\"minWidth\":[1,\"min-width\"],\"internalValue\":[32],\"internalOptions\":[32]},null,{\"options\":[\"onOptionsChange\"],\"selectedValue\":[\"onSelectedValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"shouldUseCustomAddressFormOverride\":[4,\"should-use-custom-address-form-override\"],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"shouldEnabledCustomAddress\":[32],\"isEmailError\":[32]},null,{\"showErrorBanner\":[\"watchShowErrorBanner\"]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"hiddenMode\":[4,\"hidden-mode\"],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64],\"triggerCheckoutInternational\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller.cjs\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-hello-dialog.cjs\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-stripe-input.cjs\",[[2,\"zonos-stripe-input\",{\"name\":[1],\"autoComplete\":[1,\"auto-complete\"],\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"required\":[4],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-input.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-country-select_4.cjs\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_11.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-custom-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"taxIdErrorMessage\":[1,\"tax-id-error-message\"],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"isAddressLine1Entered\":[32],\"addressSuggestions\":[32],\"countryField\":[32],\"startGooglePlaceSuggestions\":[32],\"shipToCountries\":[32],\"shippingZones\":[32],\"city\":[32],\"country\":[32],\"firstName\":[32],\"lastName\":[32],\"line1\":[32],\"line2\":[32],\"phone\":[32],\"postalCode\":[32],\"state\":[32],\"cityError\":[32],\"stateError\":[32],\"postalCodeError\":[32],\"phoneError\":[32],\"firstNameError\":[32],\"lastNameError\":[32],\"isFirstInitialization\":[32],\"addressService\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"defaultAddress\":[\"defaultAddressChanged\"],\"line1\":[\"line1Changed\"],\"city\":[\"formFieldsChanged\"],\"country\":[\"formFieldsChanged\"],\"firstName\":[\"formFieldsChanged\"],\"lastName\":[\"formFieldsChanged\"],\"line2\":[\"formFieldsChanged\"],\"phone\":[\"formFieldsChanged\"],\"postalCode\":[\"formFieldsChanged\"],\"state\":[\"formFieldsChanged\"],\"addressService\":[\"shouldEnabledCustomAddressChanged\"],\"shippingZones\":[\"shippingZonesChanged\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"taxIdErrorMessage\":[1,\"tax-id-error-message\"],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-address-suggestions\",{\"type\":[1],\"suggestions\":[16],\"selectedSuggestionId\":[32],\"localSuggestions\":[32],\"lastHoveredSuggestionId\":[32]},null,{\"suggestions\":[\"suggestionsChanged\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[2,\"zonos-stripe-phone-input\",{\"autoComplete\":[1,\"auto-complete\"],\"countryOptions\":[16],\"disabled\":[4],\"error\":[1],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"inputValue\":[1,\"input-value\"],\"countryCode\":[1,\"country-code\"],\"minWidth\":[1,\"min-width\"],\"selectedCountry\":[32],\"phoneNumber\":[32],\"isFocused\":[32],\"isSelectOpen\":[32]},null,{\"countryOptions\":[\"onCountryOptionsChange\"],\"selectedCountry\":[\"onSelectedCountryChange\"],\"inputValue\":[\"onPhoneNumberChange\"]}],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}],[1,\"zonos-stripe-select\",{\"name\":[1],\"selectedValue\":[1,\"selected-value\"],\"selectLabel\":[1,\"select-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"selectPlaceholder\":[1,\"select-placeholder\"],\"options\":[16],\"autoComplete\":[1,\"auto-complete\"],\"value\":[1025],\"required\":[4],\"isClearable\":[4,\"is-clearable\"],\"minWidth\":[1,\"min-width\"],\"internalValue\":[32],\"internalOptions\":[32]},null,{\"options\":[\"onOptionsChange\"],\"selectedValue\":[\"onSelectedValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"shouldUseCustomAddressFormOverride\":[4,\"should-use-custom-address-form-override\"],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"shouldEnabledCustomAddress\":[32],\"isEmailError\":[32],\"recordedFormTypeUsed\":[32]},null,{\"showErrorBanner\":[\"watchShowErrorBanner\"]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-adc42868.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-27f6c7a4.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-d0c67c3d.js');
|
|
7
7
|
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-27f6c7a4.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-adc42868.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
9
|
+
const TaxId = require('./TaxId-12acedde.js');
|
|
9
10
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
10
11
|
const classes = require('./classes-b7918f56.js');
|
|
11
12
|
const getBorderRadius = require('./getBorderRadius-87f3b69c.js');
|
|
@@ -21,6 +22,7 @@ const ZonosAddress$1 = class {
|
|
|
21
22
|
constructor(hostRef) {
|
|
22
23
|
index.registerInstance(this, hostRef);
|
|
23
24
|
this.invalidCharacters = index.createEvent(this, "invalidCharacters", 7);
|
|
25
|
+
this.taxIdChanged = index.createEvent(this, "taxIdChanged", 7);
|
|
24
26
|
/**
|
|
25
27
|
* Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
|
|
26
28
|
*/
|
|
@@ -32,6 +34,7 @@ const ZonosAddress$1 = class {
|
|
|
32
34
|
this.type = undefined;
|
|
33
35
|
this.titleText = undefined;
|
|
34
36
|
this.defaultAddress = [];
|
|
37
|
+
this.taxIdErrorMessage = '';
|
|
35
38
|
this.stripe = window.Zonos.stripe;
|
|
36
39
|
this.isDirtyAddress = false;
|
|
37
40
|
this.isAddressFilled = false;
|
|
@@ -191,6 +194,33 @@ const ZonosAddress$1 = class {
|
|
|
191
194
|
}
|
|
192
195
|
void this.watchInitStripe();
|
|
193
196
|
}
|
|
197
|
+
isInTaxIdCountry(countryCode) {
|
|
198
|
+
return TaxId.countryRequireTaxId.includes(countryCode);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Render tax id input based on ship to country code
|
|
202
|
+
*/
|
|
203
|
+
renderTaxIdInput() {
|
|
204
|
+
var _a;
|
|
205
|
+
// No need to render tax id input for billing address
|
|
206
|
+
if (this.type === 'billing') {
|
|
207
|
+
return null;
|
|
208
|
+
}
|
|
209
|
+
const countryCode = (_a = cart.stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
|
|
210
|
+
// Don't render tax id input if the country is not provided
|
|
211
|
+
if (!countryCode) {
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
|
|
215
|
+
if (!isCountryRequireTaxId) {
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
const taxIdInputInfo = TaxId.shipToTaxIdLabels[countryCode];
|
|
219
|
+
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { inputLabel: cart.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
|
|
220
|
+
cart.stripeStore.taxId = event.detail;
|
|
221
|
+
this.taxIdChanged.emit(event.detail);
|
|
222
|
+
} }), this.taxIdErrorMessage && (index.h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
223
|
+
}
|
|
194
224
|
renderCompanyNameInput() {
|
|
195
225
|
var _a;
|
|
196
226
|
// No need to render company name for billing address
|
|
@@ -227,7 +257,7 @@ const ZonosAddress$1 = class {
|
|
|
227
257
|
this.isAddressFilled = true;
|
|
228
258
|
}
|
|
229
259
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
230
|
-
return (index.h(index.Host, { key: '
|
|
260
|
+
return (index.h(index.Host, { key: '603d9b20415c68a3337316d5882b931870546b91', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: 'bf50ebdb5d923bb0f394d021cd1bc4efbde0137e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: '8712b6649822782ec450fe040acc29eb4ca21ed3', class: "zonos--address-component" })));
|
|
231
261
|
}
|
|
232
262
|
get el() { return index.getElement(this); }
|
|
233
263
|
static get watchers() { return {
|
|
@@ -915,6 +945,7 @@ const ZonosAddress = class {
|
|
|
915
945
|
this.type = undefined;
|
|
916
946
|
this.titleText = undefined;
|
|
917
947
|
this.defaultAddress = [];
|
|
948
|
+
this.taxIdErrorMessage = '';
|
|
918
949
|
this.stripe = window.Zonos.stripe;
|
|
919
950
|
this.isDirtyAddress = false;
|
|
920
951
|
this.isAddressFilled = false;
|
|
@@ -1019,6 +1050,32 @@ const ZonosAddress = class {
|
|
|
1019
1050
|
const hasErrors = line1 || postalCode || state || city || firstName || lastName || phone;
|
|
1020
1051
|
return !hasErrors;
|
|
1021
1052
|
}
|
|
1053
|
+
isInTaxIdCountry(countryCode) {
|
|
1054
|
+
return TaxId.countryRequireTaxId.includes(countryCode);
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Render tax id input based on ship to country code
|
|
1058
|
+
*/
|
|
1059
|
+
renderTaxIdInput() {
|
|
1060
|
+
var _a;
|
|
1061
|
+
// No need to render tax id input for billing address
|
|
1062
|
+
if (this.type === 'billing') {
|
|
1063
|
+
return null;
|
|
1064
|
+
}
|
|
1065
|
+
const countryCode = (_a = cart.stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
|
|
1066
|
+
// Don't render tax id input if the country is not provided
|
|
1067
|
+
if (!countryCode) {
|
|
1068
|
+
return null;
|
|
1069
|
+
}
|
|
1070
|
+
const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
|
|
1071
|
+
if (!isCountryRequireTaxId) {
|
|
1072
|
+
return null;
|
|
1073
|
+
}
|
|
1074
|
+
const taxIdInputInfo = TaxId.shipToTaxIdLabels[countryCode];
|
|
1075
|
+
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { error: this.taxIdErrorMessage, inputLabel: cart.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
|
|
1076
|
+
cart.stripeStore.taxId = event.detail;
|
|
1077
|
+
} })));
|
|
1078
|
+
}
|
|
1022
1079
|
renderCompanyNameInput() {
|
|
1023
1080
|
var _a;
|
|
1024
1081
|
// No need to render company name for billing address
|
|
@@ -1504,10 +1561,10 @@ const ZonosAddress = class {
|
|
|
1504
1561
|
this.country = cart.localizationStore.selectedCountryCode;
|
|
1505
1562
|
}
|
|
1506
1563
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
1507
|
-
return (index.h(index.Host, { key: '
|
|
1564
|
+
return (index.h(index.Host, { key: '1d80f8ffc85a27a7630fcc883d0bd9e8b7973d95', class: classes.classes([
|
|
1508
1565
|
'zonos--address zonos--elements',
|
|
1509
1566
|
`zonos--${this.type}-address`,
|
|
1510
|
-
]) }, index.h("zonos-text", { key: '
|
|
1567
|
+
]) }, index.h("zonos-text", { key: '6f0bde17ecda83d01cdb8576df4a03a226921db8', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
|
|
1511
1568
|
}
|
|
1512
1569
|
get el() { return index.getElement(this); }
|
|
1513
1570
|
static get watchers() { return {
|